const express = require('express');
const app = express();

//设置首页
app.use(express.static(__dirname+"/", {index: "README.md"}));
//静态代理，该路径下的文件可以直接访问
app.use(express.static("."));


//监听端口
var server = app.listen(8088, 'localhost', function () {
  var host = server.address().address
  var port = server.address().port
  console.log("webserver已启动，地址：http://%s:%s", host, port)
});